<?php
/* 
-----------------------------------------------------------------
Copyright (c) 2010 25Solutions   All Rights Reserved.

This software is the confidential and proprietary information
of 25Solutions ("Confidential Information").
You shall not disclose such Confidential Information and shall
use it only in accordance with the terms of the license
agreement you entered into with 25Solutions
-----------------------------------------------------------------
*/

/**
 * Description of CampaignRecipientsFormclass
 *
 * @author Fabio Lorenzini <fabio.lorenzini at 25solutions.com>
 */
class CampaignRecipientsForm extends BaseFormDoctrine {

    public function configure() {
        $this->setWidgets(array('recipientsFilter' => new sfWidgetFormTextarea()));
        $this->setValidators(array('recipientsFilter' => new sfValidatorString(array('required' => false))));
        $this->widgetSchema->setNameFormat('campaignRecipients[%s]');
        parent::setup();
    }

    public function getModelName() {
        return 'Campaign';
    }
    
}
?>
